php ternary operator good example

40

<?php

$is_user_logged_in = false;

$title = $is_user_logged_in ? 'Logout' : 'Login';Code language: HTML, XML (xml)

Comments

Submit
0 Comments